import api from "../../api";

// 用户注册
export const postRegister = params => api.post("/api/register", params);

// 获取验证码
export const getSMS = params => api.get("/api/sms", params);

// 登录
export const postLogin = params => api.post("/api/login", params);

// 忘记密码
export const putPassWord = params => api.put("/api/password", params);

// 上传头像
export const postUploadAvatar = params =>
  api.post("/api/upload_avatar", params);

// 获取扫描登录二维码
export const getLoginQrCode = params => api.get("/api/scan_qrcode", params);

// 获取扫描登录二维码是否成功
export const getQrCodeStatus = params =>
  api.get("/api/scan_login_status", params);

// 新的就i的信
